﻿<Window x:Class="MediaLibrary.Controls.AlbumTagEditorWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
    WindowStartupLocation="CenterScreen"
    WindowStyle="None"
    BorderBrush="Black"
    BorderThickness="1"
    ResizeMode="NoResize"
    MinHeight="196" 
    MaxHeight="196" 
    MaxWidth="622"
    MinWidth="622">
    <Window.Background>
        <ImageBrush ImageSource="../resources/background2.jpg" />
    </Window.Background>
    
    <Grid Margin="6 0 6 0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="45" />
            <RowDefinition Height="*" />
            <RowDefinition Height="55" />
        </Grid.RowDefinitions>
        
        <Label Grid.Row="0" FontSize="20" FontWeight="Bold">Edit Album Information</Label>

        <Grid Grid.Row="1" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="200" />
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="200" />
            </Grid.ColumnDefinitions>
            
            <Grid.RowDefinitions>
                <RowDefinition x:Name="row0" Height="30" />
                <RowDefinition x:Name="row1" Height="30" />
                <RowDefinition x:Name="row2" Height="30" />
            </Grid.RowDefinitions>

            <Label Grid.Row="0" FontWeight="Bold">Title:</Label>            
            <TextBox x:Name="albumTitleTextBox" Grid.Row="0" Grid.Column="1" TextAlignment="Center" VerticalContentAlignment="Center" FontWeight="Bold"></TextBox>
            <Label Grid.Row="0" Grid.Column="2" FontWeight="Bold">Genre:</Label>            
            <TextBox x:Name="albumGenreTextBox" Grid.Row="0" Grid.Column="3" TextAlignment="Center" VerticalContentAlignment="Center" FontWeight="Bold"></TextBox>

            <Label Grid.Row="1" FontWeight="Bold">Album Artist:</Label>
            <TextBox x:Name="albumAlbumArtistTextBox" Grid.Row="1" Grid.Column="1" TextAlignment="Center" VerticalContentAlignment="Center" FontWeight="Bold"></TextBox>
            <Label Grid.Row="1" Grid.Column="2" FontWeight="Bold">Year:</Label>
            <TextBox x:Name="albumYearTextBox" Grid.Row="1" Grid.Column="3" TextAlignment="Center" VerticalContentAlignment="Center" FontWeight="Bold"></TextBox>
        
            <Label Grid.Row="2" FontWeight="Bold">Conductor:</Label>
            <TextBox x:Name="albumConductorTextBox" Grid.Row="3" Grid.Column="1" TextAlignment="Center" VerticalContentAlignment="Center" FontWeight="Bold"></TextBox>
        </Grid>

        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button x:Name="saveButton" Margin="0 10 6 6" Width="100" Click="editButton_Click">Save Changes</Button>
            <Button x:Name="cancelButton" Margin="10 10 6 6" Width="100" Click="cancelButton_Click">Cancel</Button>
        </StackPanel>
    </Grid>
</Window>
